{% extends "html/base.html" %}

{% block left_menu %}
	<li class="MenuLeftItem MenuLeft21Item" style="display: none;" id="HangHoa-QuanLyHangHoa"><a href="/quanlyhanghoa/" class="Sprite1">Quản lý hàng hóa</a></li>
    <li class="MenuLeftItem MenuLeft22Item" style="display: none;" id="HangHoa-QuanLyGiaBan"><a href="/quanlygiaban/" class="Sprite1 Active">Quản lý giá bán</a></li>
{% endblock %}

{% block javascript%}
{% if priv == 'Owner' %}
<script type="text/javascript" src="/js/quanlygiaban.js"></script>
{% else %}
<script type="text/javascript" src="/js/s_quanlygiaban.js"></script>
{% endif %}
{% endblock %}

{% block search %}
{% if priv == 'Owner' %}
<label class="LabelStyle Label7Style">Nhân viên:</label>
  	<select id="cbbTenNV" class="SelectStyle Select1Style">
  	<option value="">Tất cả</option>
	{% for item in cbbTenNV %}
	<option value="{{ item.id }}">{{ item.tenNV }}</option>
	{% endfor %}
</select>
{% endif %}

<label class="LabelStyle Label2Style">Khách hàng:</label>
<select id="cbbKhachHang" class="SelectStyle Select1Style">
	<option value="">Tất cả</option>
	{% for item in lstKhachHang %}
	<option value="{{ item.id }}">{{ item.tenKhachHang }}</option>
	{% endfor %}
</select>

<label class="LabelStyle Label2Style">Hàng hóa:</label>
<select id="cbbHangHoa" class="SelectStyle Select1Style">
	<option value="">Tất cả</option>
	{% for item in lstHangHoa %}
	<option value="{{ item.id }}">{{ item.tenHangHoa }}</option>
	{% endfor %}
</select>
<div class="Clear"></div>
<div class="BoxButton">
	<a href="#" class="BtnGeneralStyle Sprite2"><span id="search" class="Sprite2">Tìm kiếm</span></a>
</div>

<input id="lstHangHoa" type="hidden" value="{{ lstHangHoaText }}">
<input id="lstKhachHang" type="hidden" value="{{ lstKhachHangText }}">
{% endblock %}

{% block grid %}
<table id="gridDanhSachHangHoa"></table>
<div id="pDanhSachHangHoa"></div>
{% endblock %}

{% block title %} QUẢN LÝ GIÁ BÁN {% endblock %}